{extends file="main.tpl"}
{block name=head}
<script type="text/javascript">
function getHide(thePlanningId,theIncomingId){
  var dataString = "planningId=" + thePlanningId + "&incomingId=" + theIncomingId;
	$.ajax({
		type: "GET",
		url: "getHide2.php",
		data: dataString,
		success:function(data)
		{
			$("#getData").html(data);
	  }
	});
}
</script>
{/block}
{block name=body}
<form name="form1" id="form1" action="{$smarty.server.PHP_SELF}" method="post">
<table border="0" align="left" width="100%">
<tr>
  <td colspan="6"  align="right" class="table1"><b>Party</b></td>
  <td colspan="7" class="table1">                                                               
    <select name="partyId" id="partyId" onchange="this.form.submit();" >
    <option value="" >Select</option>
    {html_options values=$catTitleArray.partyId output=$catTitleArray.partyName selected=$partyId}
    </select>
  </td>
</tr>
</table>
<br /><br /><br />
<div id="getData"></div>
<table border="0" align="left" width="69%">
<tr>
  <td class="table1" align='center' ><B>Select</td>
  <td class="table1" align='center' ><B>Party</td>
  <td class="table1" align='center' ><B>Log Date</td>
  <td class="table1" align='center' ><B>Quantity</td>
  <td class="table1" align='center' ><B>Weight</td>
  <td class="table1" align='center' ><B>Challan</td>
  <td class="table1" align='center' ><B>Material</td>
  <td class="table1" align='center' ><B>Hardness</td>
  <td class="table1" align='center' ><B>Process1</td>
  <td class="table1" align='center' ><B>Process2</td>
  <td class="table1" align='center' ><B>Process3</td>
</tr>
{section name="sec" loop=$incomingRegister}
<tr>
  <td class="table2" align='center'>
  	<input type="radio" name="planningId" value="{$incomingRegister[sec].planningId}" onclick="getHide({$incomingRegister[sec].planningId},{$incomingRegister[sec].incomingId});" />
  </td>
  <td class="table2" align="left" NOWRAP>{$incomingRegister[sec].partyName}</td>
  <td class="table2" align="left" NOWRAP>{$incomingRegister[sec].IncomingDate}</td>
  <td class="table2" align="left" NOWRAP>{$incomingRegister[sec].qty}</td>
  <td class="table2" align="left" NOWRAP>{$incomingRegister[sec].weight}</td>
  <td class="table2" align="left" NOWRAP>{$incomingRegister[sec].challan}</td>
  <td class="table2" align="left" NOWRAP>{$incomingRegister[sec].material}</td>
  <td class="table2" align="left" NOWRAP>{$incomingRegister[sec].hardne}</td>
  <td class="table2" align="left" NOWRAP>{$incomingRegister[sec].processName1}</td>
  <td class="table2" align="left" NOWRAP>{$incomingRegister[sec].processName2}</td>
  <td class="table2" align="left" NOWRAP>{$incomingRegister[sec].processName3}</td>
</tr>
{sectionelse}
<tr><td colspan="11" align="center">{$msg}</td></tr> 
{/section}
</table>
{/block}